package com.pang.springcloud;

import com.pang.myRule.IMyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author： pang-yun
 * @date： 2022-02-08 14:08
 * Description:
 */
@SpringBootApplication
@EnableEurekaClient
//访问的服务是 "CLOUD-PAYMENT-SERVICE"  使用 IMyRule 确定规则
@RibbonClient(name = "CLOUD-PAYMENT-SERVICE", configuration = IMyRule.class)
public class OrderMain80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderMain80.class, args);
    }
}
